package com.yager.model;

import java.util.List;

public class Page {

    private int pageNo;
    private int pageSize;
    private int totalCount;
    private int totalPageNum;

//    private int startPage;
//    private int endPage;

    private List<Integer> pageNumList;

    private List<House> houseList;
    private List<String> imageList;
    private List<Order> orderList;
    private List<Comment> commentList;

    public Page(int pageNo, int pageSize, int totalCount) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.totalCount = totalCount;
        if(totalCount%pageSize==0){
            this.totalPageNum=totalCount/pageSize;
        }
        else{
            this.totalPageNum=(totalCount/pageSize)+1;
        }
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPageNum() {
        return totalPageNum;
    }

    public void setTotalPageNum(int totalPageNum) {
        this.totalPageNum = totalPageNum;
    }

    public List<House> getHouseList() {
        return houseList;
    }

    public void setHouseList(List<House> houseList) {
        this.houseList = houseList;
    }

    public List<Order> getOrderList() {
        return orderList;
    }

    public void setOrderList(List<Order> orderList) {
        this.orderList = orderList;
    }

    public List<Comment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<Comment> commentList) {
        this.commentList = commentList;
    }

    public List<String> getImageList() {
        return imageList;
    }

    public void setImageList(List<String> imageList) {
        this.imageList = imageList;
    }

    public List<Integer> getPageNumList() {
        return pageNumList;
    }

    public void setPageNumList(List<Integer> pageNumList) {
        this.pageNumList = pageNumList;
    }

    //    public int getStartPage() {
//        return startPage;
//    }
//
//    public void setStartPage(int startPage) {
//        this.startPage = startPage;
//    }
//
//    public int getEndPage() {
//        return endPage;
//    }
//
//    public void setEndPage(int endPage) {
//        this.endPage = endPage;
//    }
}
